home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / reader_requests / wild / include / extensions / ppct.h < prev    next >
C/C++ Source or Header  |  2000-02-23  |  989b  |  44 lines

  1.  
  2. #include <exec/types.h>
  3. #include <utility/tagitem.h>
  4.  
  5. struct ppctnode
  6. {
  7.  UWORD            ppctn_splitatx;
  8.  UWORD            ppctn_splitaty;
  9.  UWORD            ppctn_splitatz;
  10.  struct ppctnode    *ppctn_childs[8];
  11.  UWORD            ppctn_numofcols;
  12.  UWORD            *ppctn_colsarray;
  13. };
  14.  
  15. struct ppctprek
  16. {
  17.  UWORD            ppctp_x;
  18.  UWORD            ppctp_y;
  19.  UWORD            ppctp_z;
  20. };
  21.  
  22. struct ppct
  23. {
  24.  ULONG             *ppct_pool;
  25.  struct ppctnode    *ppct_root;
  26.  UWORD            ppct_maxdepth;
  27.  UWORD            ppct_maxpernode;
  28.  ULONG            *ppct_truechunky;    // used only during the costruction. you can free the chunky then.
  29.  struct    ppctprek    *ppct_prekchunky;
  30.  UBYTE            ppct_flags;
  31.  UBYTE            ppct_hole00;
  32. };
  33.  
  34. #define PPCTF_RGBMode    0x01
  35. #define PPCTB_RGBMode    0
  36.  
  37. #define PPCT_TAGBASE        TAG_USER+0x0eeee000
  38. #define PPCT_ChunkyArray    PPCT_TAGBASE+0    // REQUIDED
  39. #define PPCT_MaxTreeDepth    PPCT_TAGBASE+1    // default 24
  40. #define PPCT_MaxColorsPerNode    PPCT_TAGBASE+2    // default 1
  41. #define PPCT_ChunkyPixelsNum    PPCT_TAGBASE+3    // REQUIDED
  42. #define PPCT_RGBMode        PPCT_TAGBASE+4    // defaulf FALSE (HSL mode!)
  43.  
  44.